package com.bristua.barcode.customer.dao;

import com.bristua.barcode.customer.model.TCustomer;
import com.bristua.barcode.customer.model.condition.TCustomerExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TCustomerMapper {
    long countByExample(TCustomerExample example);

    int deleteByExample(TCustomerExample example);

    int deleteByPrimaryKey(String customerId);

    int insert(TCustomer record);

    int insertSelective(TCustomer record);

    List<TCustomer> selectByExample(TCustomerExample example);

    TCustomer selectByPrimaryKey(String customerId);

    int updateByExampleSelective(@Param("record") TCustomer record, @Param("example") TCustomerExample example);

    int updateByExample(@Param("record") TCustomer record, @Param("example") TCustomerExample example);

    int updateByPrimaryKeySelective(TCustomer record);

    int updateByPrimaryKey(TCustomer record);

    int batchUpdate(@Param("recordList") List<TCustomer> recordList);

    int batchInsert(@Param("recordList") List<TCustomer> recordList);

    int batchDelete(@Param("ids") String[] ids);
}